/*
 * This file is part of Ember.
 *
 * Ember is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Ember is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Ember.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Copyright (C) Grant Tyra 2010
 * granttyra@gmail.com
*/

#ifndef EMBER_DICTIONARY_H
#define EMBER_DICTIONARY_H

#include "ember_list.h"

typedef struct EmberDictionaryMapping_s {
	char *key;
	void *value;
} EmberDictionaryMapping;

typedef struct EmberDictionary_s {
	EmberDictionaryMapping **values;
	int size;
} EmberDictionary; 

EMBER_EXPORT EmberDictionary *EmberDictionaryCreate(void);
EMBER_EXPORT void EmberDictionaryDestroy(EmberDictionary*);

EMBER_EXPORT void EmberDictionaryPut(EmberDictionary*, const char*, void*);
EMBER_EXPORT void EmberDictionaryRemove(EmberDictionary*, const char*);
EMBER_EXPORT void EmberDictionaryValues(EmberDictionary*, EmberList*);
EMBER_EXPORT void EmberDictionaryKeys(EmberDictionary*, EmberList*);
EMBER_EXPORT void *EmberDictionaryGet(EmberDictionary*, const char*);

#endif

